//Source file: D:\\test\\com\\ce\\pms\\house\\model\\ChargePrecinctDomain.java

package com.ce.pms.house.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.OneToMany;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;



/**
 * 实体:收费管理区
 * 关联表：HM_CHARGE_PRECINCT
 */
@Entity
@Table(name = "HM_CHARGE_PRECINCT")
@PrimaryKeyJoinColumn(name = "CHARGE_PRECINCT_ID")
public class ChargePrecinctDomain extends Precinct
{

   /**
    * 检索策略:lazy=true
    */
	@OneToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "HM_CHARGE_PRECINCT_R_BUILDING"
		,joinColumns={@JoinColumn(name = "CHARGE_PRECINCT_ID")}
		,inverseJoinColumns={@JoinColumn(name = "BUILDING_ID")})
   private Set<BuildingDomain> buildings = new HashSet<BuildingDomain>();

   /**
    * @roseuid 484F3FA30157
    */
   public ChargePrecinctDomain()
   {

   }

/**
 * @return the buildings
 */
public Set<BuildingDomain> getBuildings() {
	return buildings;
}

/**
 * @param buildings the buildings to set
 */
public void setBuildings(Set<BuildingDomain> buildings) {
	this.buildings = buildings;
}
}
